package com.yunkeji.system.domain.bo;

import com.yunkeji.common.core.domain.BaseEntity;
import com.yunkeji.common.core.validate.AddGroup;
import com.yunkeji.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 用户钱包信息业务对象 ykj_user_visit
 *
 * @author zhang
 * @date 2024-07-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class UserVisitBo extends BaseEntity {

    /** user_wallet_info */
    @NotNull(
            message = "user_wallet_info不能为空",
            groups = {EditGroup.class})
    private Long id;

    /** 谁访问 */
    @NotNull(
            message = "谁访问不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private Long fromUserId;

    /** 访问谁 */
    @NotNull(
            message = "访问谁不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private Long toUserId;

    /** 用户昵称 */
    @NotBlank(
            message = "用户昵称不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private String nickName;

    /** 头像路径 */
    @NotBlank(
            message = "头像路径不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private String headUrl;

    /** 性别 */
    @NotNull(
            message = "性别不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private Integer sex;

    /** 查看次数 */
    @NotNull(
            message = "查看次数不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private Long count;
}
